package com.ist.smartvehicle;

public class Engine {

	public final static int cruiseVelocity = 10;		//	m/s 
	public final static long batteryMax = 36000000;		//	J
	public final static int horizontalSpending = 1000;	// 	J/m
	public final static int verticalSpending = 7200;	//	J/m
	
	public long batteryLevel;

	public Engine() {
		super();
		batteryLevel = batteryMax;
	}
	
	public void move(int meters) throws EngineException {
		batteryLevel -= horizontalSpending * meters;
	}
	
	public void climb(int meters) throws EngineException {
		batteryLevel -= verticalSpending * meters;
	}
}
